package com.nekonomics.lakehouse.common
package util


object SqlUtil {

  implicit class sqlOps(val sc: StringContext) extends AnyVal {
    def sql(args: Any*): String = sc.s(args: _*)
  }


  def jdbcConnector(tableName: String): String =
    sql"""
      |(
      |  'connector' = 'jdbc',
      |  'url' = 'jdbc:postgresql://192.168.10.1:5432/nekonomics',
      |  'username' = 'postgres',
      |  'password' = 'DB123456',
      |  'table-name' = '$tableName'
      |);
      |""".stripMargin


}
